package com.jerseyapi;


import com.jerseyapi.resource.UserResource;
import org.codehaus.jackson.jaxrs.JacksonJsonProvider;
import org.glassfish.jersey.server.ResourceConfig;

public class ApplicationAPI extends ResourceConfig {

    public ApplicationAPI() {
// 加载resources
        register(Test2.class);
        register(UserResource.class);
// 注册数据转换器
        register(JacksonJsonProvider.class);
// 注册日志
        //register(LoggingFilter.class);
    }
}

